package com.felix.headFirst.behavior.entity;

import com.felix.headFirst.behavior.impl.FlyWithWings;
import com.felix.headFirst.behavior.impl.Quack;

public class MallardDuck extends Duck {

    public MallardDuck() {
        quackBehavior = new Quack();
        flyBehavior = new FlyWithWings();
    }

    @Override
    void display() {
        System.out.println("I'm a real Mallard Duck");
    }
}
